#ifndef _ml_uart_h
#define _ml_uart_h
#include "headfile.h"

typedef enum
{
    NUMBER = 0,
    STRING,
    NULL_TYPE,
    ERROR_TYPE
}recv_type_t;

void uart_init(UART_Regs *uart, uint32_t baud, uint32_t pri);
void uart_sendbyte(UART_Regs *uart, uint8_t ch);
uint8_t uart_getbyte(UART_Regs *uart);
void uart_put_char(UART_Regs *uart, char ch);
void uart_put_string(UART_Regs *uart, const char *str);
void uart_put_uint8(UART_Regs *uart, uint8_t value);
void uart_put_uint16(UART_Regs *uart, uint16_t value);
void uart_put_int16(UART_Regs *uart, int16_t value);
void uart_function(UART_Regs *uart);
void SCI_Send_Datas();
#endif